package org.hsieh.tr.explore.util;

/**
 * 
 * 
 *@author hsieh 234aini@gmail.com
 * 
 */
public abstract class StringUtil {

    public static boolean isNullOrEmpty(final String str) {
	return str == null || str.trim().equals("");
    }

    public static String capitalize(String s) {
	if (s.length() == 0)
	    return s;
	return s.substring(0, 1).toUpperCase() + s.substring(1);
    }
}
